package com.ymatou.iapi.sellertrading.service;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;

public class AcceptOrderCall extends YmatouAutoTestCall {

	private static String opurl = "/api/orderoperate/acceptorder";
	
	public AcceptOrderCall(){
		super(EnvSetup.getSystemUrl("sellertrading_iapi"),opurl,"POST","JSON");
	}
	public AcceptOrderCall(int sellerid, int UserId) {
		super(EnvSetup.getSystemUrl("sellertrading_iapi"),opurl+"?sellerid="+sellerid+"&UserId="+UserId,"POST","JSON");
		// TODO Auto-generated constructor stub
	}

	public void addDefHeader(){
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new AcceptOrderCall(480948, 480948).callAndGetReturnData();
	}

}
